﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MediaPlayer.ViewModel.Tools
{
    public static class MyFileBrowser
    {
        private static bool isInit = false;
        private static OpenFileDialog fileDialog;

        public static OpenFileDialog FileDialog
        {
            get
            {
                if (isInit == false)
                {
                    fileDialog = new OpenFileDialog();
                    fileDialog.Multiselect = true;
                    fileDialog.Filter =
                        "Images (*.BMP;*.JPG;*.GIF)|*.BMP;*.JPG;*.GIF|" +
                        "Video (*.avi)|*.avi|" +
                        "Music (*.mp3;*.wav)|*.mp3;*.wav";
                    isInit = true;
                }
                return fileDialog;
            }
        }
    }
}
